home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Deutsche Edition 1
/
Deutsche Edition 1.iso
/
amok
/
amok_lha
/
amok83.lha
/
TKEd
/
Rexx
/
MakeNumber.tked
< prev
next >
Wrap
Text File
|
1993-08-15
|
823b
|
43 lines
/** --------------------------------------------
** ARexx program number all the lines of a text
** --------------------------------------------
** AREXX-Programm, das alle Zeilen nummeriert
** --------------------------------------------
**
** © Tom Kroener 1992
**/
options results
address 'TKEd.1' /* Name of TKEd's port */
SIGNAL ON BREAK_C
LastLine /* Get number of the last line in a text */
x=result
BeginOfFile /* Go to the top of the text */
GetLineNr /* Get linenumber */
y=result
do while y < x
BeginOfLine
WriteString y /* Write number */
WriteString ": " /* Write ': ' */
Cursor "DOWN"
GetLineNr /* Get linenumber */
y=result
end
BeginOfLine
WriteString y /* Write number */
WriteString ": " /* Write ': ' */
BREAK_C: